<?php get_header(); ?>
			
			<!-- BEGIN #content-wrap -->
			<div id="content-wrap" class="clearfix">
			
			
				<!--BEGIN #primary .hfeed-->
                
				<div id="primary" class="hfeed">
                <?php if(get_option('tz_featured_post') == 'true') : ?>
                <div class="cu3er_resize">
                       <div id="cu3er-container">
       <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a>
                        </div>
                </div> 
						<?php endif; ?>
                          	<?php if (have_posts()) : ?>			
		
					<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
                    <?php /* If this is a category archive */ if (is_category()) { ?>
                        <h1 class="page-title"><?php printf(__('All posts in %s', 'framework'), single_cat_title('',false)); ?></h1>
                    <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
                        <h1 class="page-title"><?php printf(__('All posts tagged %s', 'framework'), single_tag_title('',false)); ?></h1>
                    <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
                        <h1 class="page-title"><?php _e('Archive for', 'framework') ?> <?php the_time('F jS, Y'); ?></h1>
                     <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
                        <h1 class="page-title"><?php _e('Archive for', 'framework') ?> <?php the_time('F, Y'); ?></h1>
                    <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
                        <h1 class="page-title"><?php _e('Archive for', 'framework') ?> <?php the_time('Y'); ?></h1>
                    <?php /* If this is an author archive */ } elseif (is_author()) { ?>
                        <h1 class="page-title"><?php _e('All posts by', 'framework') ?> <?php echo $curauth->display_name; ?></h1>
                    <?php /* If this is a category archive */} elseif (is_search()) { ?>
                    	<h1 class="page-title"><?php _e('Search Results for: ', 'framework'); echo '"'.$_GET['s'].'"'; ?></h1>
                     <?php } ?>
	
					<?php while (have_posts()) : the_post(); ?>
						
						<!--BEGIN .hentry -->
						<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">	
                        <div class="posttime"> <?php the_time('M d Y'); ?></div>
                          <div class="tw"><a href="<?php echo stripslashes(get_option('tz_twitter')); ?>" rel="bookmark" >tweet this</a></div>
                          <div class="fboook"><a href="<?php echo stripslashes(get_option('tz_facebook')); ?>" rel="bookmark">connect</a></div>
                          <div class="subscribe"><a href="<?php echo stripslashes(get_option('tz_rss')); ?>" rel="bookmark">subscribe</a></div>	
							<h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'framework'), get_the_title()); ?>"> <?php the_title(); ?></a></h2>
											
							<!--BEGIN .entry-meta .entry-header-->
							
							
							
							<div class="post-thumb post-lead">
								<a href="<?php the_permalink();?>" class="thumb">
<img src="<?php echo thumb_image(); ?>" width="180" height="140" alt="thumbnail" /></a>
							</div>
		
							<!--BEGIN .entry-content -->
							<div class="entry-content">
                  <?php the_content_rss('', TRUE, '', 90); ?>							<!--END .entry-content -->
							</div>
                            
                            <div class="postcomment"><?php comments_popup_link(__('0', 'framework'), __('1', 'framework'), __('%', 'framework')); ?></div>
                             <div class="postreadmore"><a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title(); ?>">MORE</a> </div>
		                <div class="postentry-meta entry-header">
								<span><?php _e('by', 'framework') ?></span> <?php the_author(); ?> <span><?php _e('in', 'framework') ?></span> <?php the_category(', ') ?> <?php edit_post_link( __('edit', 'framework'), '<span class="edit-post">[', ']</span>' ); ?> 
                               
							<!--END .entry-meta entry-header -->
							</div>
						<!--END .hentry-->  
						</div>
		
						<?php endwhile; ?>
		
					<!--BEGIN .navigation .page-navigation -->
					<div class="navigation page-navigation clearfix">
						<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
						<div class="nav-next"><?php next_posts_link(__('&larr; Older Entries', 'framework')) ?></div>
						<div class="nav-previous"><?php previous_posts_link(__('Newer Entries &rarr;', 'framework')) ?></div>
						<?php } ?>
					<!--END .navigation ,page-navigation -->
					</div>
		
					<?php else : ?>
		
					<!--BEGIN #post-0-->
					<div id="post-0" <?php post_class(); ?>>
					
						<h2 class="entry-title"><?php _e('Error 404 - Not Found', 'framework') ?></h2>
					
						<!--BEGIN .entry-content-->
						<div class="entry-content">
							<p><?php _e("Sorry, but you are looking for something that isn't here.", "framework") ?></p>
							<?php get_search_form(); ?>
						<!--END .entry-content-->
						</div>
					
					<!--END #post-0-->
					</div>
		
					<?php endif; ?>
					
				<!--END #primary .hfeed-->
				</div>
			
			
			<!-- END #content-wrap -->
			</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>